﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AXImServer
{
    public interface IInvitationService
    {
        /// <summary>
        /// 获取邀请数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Invitation GetInvitation(long id);

        /// <summary>
        /// 获取全部的邀请数据
        /// </summary>
        /// <param name="userid"></param>
        /// <returns></returns>
        IEnumerable<Invitation> GetAllInvitation(long userid);

        /// <summary>
        /// 添加邀请数据
        /// </summary>
        /// <param name="invitation"></param>
        /// <returns></returns>
        bool AddInvitation(Invitation invitation);

        /// <summary>
        /// 删除邀请
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool RemoveInvitation(long id);
    }
}
